const routes = {
    path: '/',
    getComponent(nextState, cb) {
        require.ensure([], require => cb(null, require('../views/home')), 'Home')
    },
    childRoutes: [
        {
            path: '/demo',
            getComponent(nextState, cb) {
                require.ensure([], require => cb(null, require('../views/demo')), 'Demo')
            }
        }
    ]
}

export default routes
